package com.jiashihui.schema_lgorithm.schema.adapter;

/**
 * @author jiashihui
 * @describe: 德国旅馆
 * @date 2019/03/14
 */
public class GermanyHotel {
    /* 符合德标的插座 */
    private DBSocket dbSocket;

    public GermanyHotel() {

    }

    public GermanyHotel(DBSocket dbSocket) {
        this.dbSocket = dbSocket;
    }

    public void setDbSocket(DBSocket dbSocket) {
        this.dbSocket = dbSocket;
    }

    /**
     * 充电
     *
     * @author jiashihui
     */
    public void charge() {
        // 使用德标插口充电
        dbSocket.powerWithTwoRound();
    }
}
